# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Jonni Westphalen <jonny.westphalen@googlemail.com>
pkgname=python-pyclibrary
pkgver=0.2.1
pkgrel=2
pkgdesc="C parser and bindings automation for Python"
arch=('any')
url="https://github.com/MatthieuDartiailh/pyclibrary"
license=('MIT')
depends=('python-setuptools' 'python-pyparsing' 'python-future')
source=("https://github.com/MatthieuDartiailh/pyclibrary/releases/download/${pkgver}/pyclibrary-${pkgver}.tar.gz")
sha256sums=('735b2b42a9015a0cfdd8522b14fb9d0a66a9f790b5f0e948bda90675f54be049')

build() {
    cd "pyclibrary-${pkgver}"

    python setup.py build
}

package() {
    cd "pyclibrary-${pkgver}"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build

    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
